﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace Orion.Lib.Enemy
{
    public class BaseEnemy : GraphicElement
    {
        public BaseEnemy(Texture2D text)
            : base(text)
        {
            
        }

        public override void Update(GameTime gameTime)
        {
            PossitionY += 1;
            if (PossitionY > MyGame.graphics.PreferredBackBufferHeight + texture.Height + 10)
            {
                this.Dispose();
              
            }

            base.Update(gameTime);
        }

        public override void Draw(GameTime gameTime)
        {
            MyGame.currentScreen.Draw(texture, Possition, Color.White);
        }
    }
}
